<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>博文列表</title>
	<link rel="stylesheet" href="__PUBLIC__/Admin/Css/common.css" />
	<script type="text/javascript" src='__PUBLIC__/Admin/Js/jquery-1.8.2.min.js'></script>
	<script type="text/javascript" src='__PUBLIC__/Admin/Js/common.js'></script>
</head>
<body>
	<div class='status'>
		<span>博文检索</span><if condition='ACTION_NAME neq "index"'><div style="float: right;"><a href="{:U('deleteAll')}">清空回收站</a></div></if>
	</div>
	<div style='width:600px;text-align:center;margin : 20px auto;'>
		<form action="__SELF__" method='get'>
			检索关键字：
			<input type="text" name='search'/>
			<input type="submit" value='' class='see'/>
		</form>
	</div>
	<table class="table">
		<if condition='isset($blog) && !$blog'>
			<tr>
				<td align='center'>没有检索到相关的博文</td>
			</tr>
		<else/>
			<tr>
				<th>ID</th>
				<th>标题</th>
				<th>所属栏目</th>
				<th>点击次数</th>
				<th>发布时间</th>
				<th>操作</th>
			</tr>
			<foreach  name='blog' item='v'>
				<tr>
					<td width='20' align='center'>{$v.id}</td>
					<td>{$v.title}<strong style="color:{$v.color}"><if condition='$v["a_name"]'>[{$v.a_name}]</if></strong></td>
					<td width='70' align="center">{$v.c_name}</td>
					<td width="70" align="center">{$v.click}</td>
					<td width='100' align='center'>{$v.time|date='Y-m-d H:i', ###}</td>
					<td width='140' align='center'>
					<if condition='ACTION_NAME eq "index"'>
						<a href="{:U('editBlog', array('id' => $v['id']))}" class='edit'></a>
						<a href="{:U('toTrach', array('id' => $v['id'],'del' => 1))}" class='del'></a>
					<else/>
						<a href="{:U('toTrach', array('id' => $v['id'],'del' => 0))}">还原</a>｜
						<a href="{:U('delete', array('id' => $v['id']))}">彻底删除</a>
					</if>
					</td>
				</tr>
			</foreach>
		</if>
	</table>
	<div class="page1">{$page}</div>
</body>
</html>